description = "默认布局页面,除去产品终端页，注册完成，购物车，一步支付页面，下单成功外的页面"
[account]
[catalog]
[session]
==
use Jason\Ccshop\Controllers\Orders;
function onStart(){
use Jason\Ccshop\Models\TraceCode;
$google_analyze_id = TraceCode::fetch('google_analyze_id');
$facebook_remarketing_code_id = TraceCode::fetch('facebook_remarketing_code_id');
if($facebook_remarketing_code_id){
    $this['facebook_remarketing_code_id'] = $facebook_remarketing_code_id;
}
if($google_analyze_id){
    $this['google_analyze_id'] = $google_analyze_id;
}

$this['orderStatus'] = (new Orders())->myOrdersStatus();
$orderStatus = (new Orders())->myOrdersStatus();
$cr = 0;
$op = 0;

foreach($orderStatus as $os){
if($os['status_id'] == 6){
$cr += $os['count'];
}
if($os['status_id'] == 8){
$cr += $os['count'];
}
if($os['status_id'] == 1){
$op += $os['count'];
}
if($os['status_id'] == 9){
$op += $os['count'];
}
}
$this['cr']=$cr;
$this['op']=$op;
}
==
<!DOCTYPE html>
<html lang="ja-JP" xml:lang="ja-JP">
<head>
	<meta charset="UTF-8">
	<meta http-equiv="Content-Language" content="ja">
	<meta property="og:price:currency" content="JPY">
	<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
	<meta http-equiv="Content-Language" content="ja">
	<title>{% placeholder page_title default type="text" %}{{ appName }}{% endplaceholder %}</title>
	<meta property="og:price:currency" content="JPY">
	<link rel="shortcut icon" href="{{ 'assets/img/favicon.ico'|theme }}">
	<link rel="stylesheet" href="{{ 'assets/css/swiper.min.css'|theme }}">
	<link rel="stylesheet" href="{{ 'assets/css/font-awesome.min.css'|theme }}">
	<link rel="stylesheet" href="{{ 'assets/css/commen.css'|theme }}">
	<link rel="stylesheet" href="{{ 'assets/css/css.css'|theme }}">
	<title>{% placeholder page_title default type="text" %}{{ catalog.app.name }}{% endplaceholder %}</title>
</head>
<body>
	
	{% partial 'common/head' %}
	<div class="containers">
	{% page %}
	</div>
	{% partial 'common/footer' %}
	<!--mask-->
		<div class="mask" style="display: none;"></div>
	<!--mask end-->

	<div id="loading">
	    <div class="loading"><img src="{{ 'assets/img/loadingAnimation.gif'|theme }}" alt=""></div>
	</div>
	<div class="goTop"><img src="{{ 'assets/img/btn_page_top.png'|theme }}" alt=""></div>
	<script type="text/javascript" src="{{ 'assets/js/jquery-1.11.2.min.js'|theme }}"></script>
	<script type="text/javascript" src="{{ 'assets/js/jquery.lazyload.js'|theme }}"></script>
	<script type="text/javascript" src="{{ 'assets/js/swiper.min.js'|theme }}"></script>
	<script type="text/javascript" src="{{ 'assets/js/main.js'|theme }}"></script>
	{% framework extras %}
  	{% scripts %}
                
  	{% if google_analyze_id %}
        <!-- Global site tag (gtag.js) - Google Analytics -->
        <script async src="https://www.googletagmanager.com/gtag/js?id={{ google_analyze_id }}"></script>
        <script>
            window.dataLayer = window.dataLayer || [];
            function gtag(){dataLayer.push(arguments);}
            gtag('js', new Date());
            gtag('config', '{{ google_analyze_id }}');
        </script>
        {% endif %}

	{% if facebook_remarketing_code_id %}
        <!-- Facebook Pixel Code -->
        <script>
            !function(f,b,e,v,n,t,s){if(f.fbq)return;n=f.fbq=function(){n.callMethod?
                n.callMethod.apply(n,arguments):n.queue.push(arguments)};if(!f._fbq)f._fbq=n;
                n.push=n;n.loaded=!0;n.version='2.0';n.queue=[];t=b.createElement(e);t.async=!0;
                t.src=v;s=b.getElementsByTagName(e)[0];s.parentNode.insertBefore(t,s)}(window,
                document,'script','https://connect.facebook.net/en_US/fbevents.js');
            fbq('init', '{{ facebook_remarketing_code_id }}');
            fbq('track', 'PageView');
            {% placeholder fb_standard_event %}
        </script>
        <noscript><img height="1" width="1" style="display:none" src="https://www.facebook.com/tr?id={{ facebook_remarketing_code_id }}&ev=PageView&noscript=1" /></noscript>
        <!-- DO NOT MODIFY -->
        <!-- End Facebook Pixel Code -->
        {% endif %}


	
<!-- Google Code for Remarketing Tag -->
<!--
Remarketing tags may not be associated with personally identifiable information or placed on pages related to sensitive categories. See more information and instructions on how to setup the tag on: http://google.com/ads/remarketingsetup
-->
	<script type="text/javascript">
        {% placeholder google_tag_params %}
	</script>
<script type="text/javascript">
/* <![CDATA[ */
var google_conversion_id = 828115565;
var google_custom_params = window.google_tag_params;
var google_remarketing_only = true;
/* ]]> */
</script>
<script type="text/javascript" src="//www.googleadservices.com/pagead/conversion.js">
</script>
<noscript>
<div style="display:inline;">
<img height="1" width="1" style="border-style:none;" alt="" src="//googleads.g.doubleclick.net/pagead/viewthroughconversion/828115565/?guid=ON&amp;script=0"/>
</div>
</noscript>

</body>